<?php

declare(strict_types=1);

namespace App\Model;

use Hyperf\DbConnection\Model\Model;

/**
 * @property string $userRoleId 用户角色id
 * @property string $userId 用户id
 * @property string $roleId 角色id
 */
class UserRole extends Model
{
        /**
         * 主键字段
         */
        public string $primaryKey = 'userRoleId';

        /**
         * 不自动维护时间
         * @var bool
         */
        public bool $timestamps = false;

        /**
         * The table associated with the model.
         */
        protected ?string $table = 'user_role';

        /**
         * The attributes that are mass assignable.
         */
        protected array $fillable = [];

        /**
         * The attributes that should be cast to native types.
         */
        protected array $casts = ['userRoleId' => 'string'];
}
